//hasOwn 检查一个对象是否有自己的某个指定属性
let obj = {
    age:10
}
console.log(Object.hasOwn(obj,'age'))
console.log(obj.hasOwnProperty('age'))
//Object.defineProperty(obj,'home',{value:'beijing',enumerable:false})
obj.__proto__.home = 'beijing';
console.log(obj.home)
console.log(Object.hasOwn(obj,'home'))
console.log(obj.hasOwnProperty('home'))